const
	varHandler = require('./variables'),
	cacheHandler = require('./cache'),
	shellHandler = require('./shell');

let handler = {
	'namespace': function(self){console.log(self.namespace)},
	'set': varHandler.setVariable,
	'get': varHandler.getVariable,
	// cache
	'cache': cacheHandler,
	// shell
	'!ls': shellHandler('ls'),
	'!pwd': shellHandler('pwd'),
	'!cat': shellHandler('cat')
}

// alias
handler.ns = handler.namespace;

module.exports = handler;